<?php
// $Id: comment.tpl.php,v 1.10 2008/01/04 19:24:24 goba Exp $

 $st = $comment->timestamp;
 $en = strtotime(date("d-m-Y h:i:s"))+43200;//adding 12 hours to current time
 $diff = round(($en - $st)/(3600*24)); 
 $days =$diff." days ago";
if(!$diff)
{
$diff = round(($en - $st)/(3600));
$days ="about ".$diff." hours ago";
/*if(!$diff)
{
 $diff = round(($en - $st)/(360));
 $days =$diff." Minutes ago";
}*/

}
?>
<div  id="<?php print $comment->ct;?>" <?php if($comment->ct =='1' ||$comment->ct =='2'){ echo 'style=display:none';}?> class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status; print ' '. $zebra; ?>">

 

  <?php //if ($comment->new) : ?>
    <span class="new">
	<?php
	//print drupal_ucfirst($new)
	//print $days.'Days ago';
	?>
	</span>
  <?php //endif; ?>

  <?php print $picture ?>

   <!-- <h3><?php print $title ?></h3>-->

    <div class="content answers_area">
      <?php 
	  global $base_url;
  $profile_node = content_profile_load('profile', $comment->user_id);
 // print_r($profile_node->field_upload_image[0]['fid']);
 if($profile_node->field_upload_image[0]['fid'] != ""){
  $p = $profile_node->field_upload_image[0]['filepath'];
 
  print theme('imagecache', 'forum_icon', $p, '', '', array('align'=>'left','style'=>'padding:5px'));
 } else {
    $gender = $profile_node->field_gender[0]['value'];
   if($gender == 'Male'){
	   $src=$base_url."/".path_to_theme()."/images/male_icon.gif";
   } else {
	   	   $src=$base_url."/".path_to_theme()."/images/female_icon.gif";
   }
   
	  ?>
	  <div class="left_area_image"><img src="<?php print $src;?>" style="padding:5px;" align="left" /></div>
	  <?php }?>
<div class="right_area_content">
      		<p style="float:left">
		  		<?php print '<span class=blue2>'.$profile_node->field_first_name['0']['value'].'</span>:'.$content ?>
            </p>
          <?php if ($signature): ?>
          	
            	<?php print $signature ?>
          	
          <?php endif; ?>
         <?php if ($links): ?>
    <div class="links">
			<?php if ($submitted): ?>
            <span class="submitted" style="float:left;"><?php //print $submitted;
				print $days.'';


				 ?>
            </span>
      		<?php endif; ?>
			
			<?php print $links ?></div>
  <?php endif; ?>

		  	

 
</div>  
  </div>
</div>
